
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title><%= h(yield(:title) || "qiso - questions in, solutions out") %></title>
  <%= stylesheet_link_tag 'application' %><%= javascript_include_tag :defaults %><%= yield(:head) %>
</head>
<body>
  <div id="title"><a href="/home">
      <img src="images/qiso-preview.png" alt="Questions in, Solutions out. The community-driven machine that gathers domain-specific knowledge (click to enter)"/></a>
  </div>
  <div id="container">
    <div id="header">
      <div id="site_nav"><%= link_to "Home", home_path %></div>
      <div id="user_nav">
      <% if current_user %>
        <%= h "(logged in as #{current_user.username})" %>
        <br />
        <%= link_to "Edit Profile", edit_user_path(:current) %> | <%= link_to "Logout", logout_path %> 
      <% else %>
        <%= link_to "Register", new_user_path %> | <%= link_to "Login", login_path %> 
      <% end %>
      </div>
    </div>
    <div class="clear"></div>
    <div id="content">
    <%- if show_title? -%>
      <h1><%=h yield(:title) %></h1>
    <%- end -%>
    <%= yield %>
    </div>
    <div id="sidebar">
      <%= yield(:sidebar) || "<blockquote>\"By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitteres\
t.\"</blockquote> <p class=\"credit\">-Confucius</p>" %>
    </div>
  </div>
  <div id="footer">
   "Qiso" is an open-source project. Contribute to the development of "qiso" at <a href="http://code.google.com/p/qiso">http://code.google.com/p/qiso</a>
  </div>
</body>
</html>






